/**
 * 
 */
package us.gaaoc.framework.dao;

import org.hibernate.Query;

import us.gaaoc.framework.model.Court;
import us.gaaoc.framework.model.LocalCaseFilingType;

/**
 * 
 * @author hea
 * May 18, 2007
 */
public class LocalCaseFilingTypeDAOHibernate extends GenericHibernateDAO<LocalCaseFilingType, Integer, LocalCaseFilingTypeDAO>
implements  LocalCaseFilingTypeDAO{

	public LocalCaseFilingType findLocalCaseFilingTypeByCourtandCode(Court court, String code) {
		Query q = this.getSession().createQuery("from LocalCaseFilingType c where c.court = ? and c.cmsCode = ? ");
		q.setEntity(0, court);
        q.setString(1, code);
        return (LocalCaseFilingType)q.uniqueResult();
	}
}
